package com.onlineMIS.ORM.entity.headQ.finance;

import java.io.Serializable;
import java.util.Date;

public class FinanceCategoryFlow implements Serializable {
	/**
	 * 
	 */
	private static final long serialVersionUID = 3186805427385812468L;
	private int id;
	private int financeCategoryId;
	private double amt;
	private Date date;
	// O:C(O正常过账, C红冲):S/C （s:供应商 C客户）: 单据号     B:机构 (B:B 机构转账) 	H: 总部, (B:H 总部费用)
	//O:S:123465
	//B:B 机构转账
	//B:C 费用下账
	//B:D 总部费用收益单
	private String comment;
	//软删：（0：正常，1：已删除）
	private Integer delflag =0;
	
	public static final int IS_NORMAL = 0;
	public static final int IS_DELECT = 1;
	
	/**
	 * 
	 */
	
	public FinanceCategoryFlow(){
		
	}
	
	public FinanceCategoryFlow(int financeCategoryId, double acctAmt, String comment){
		this.financeCategoryId = financeCategoryId;
		this.amt = acctAmt;
		this.comment = comment;
		this.date = new Date();
	}
	
	public FinanceCategoryFlow(int financeCategoryId, double acctAmt, String comment, Date changeDate){
		this.financeCategoryId = financeCategoryId;
		this.amt = acctAmt;
		this.comment = comment;
		
		if (changeDate == null)
		    this.date = new Date();
		else 
			this.date = changeDate;
	}
	
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}


	public int getFinanceCategoryId() {
		return financeCategoryId;
	}

	public void setFinanceCategoryId(int financeCategoryId) {
		this.financeCategoryId = financeCategoryId;
	}

	public double getAmt() {
		return amt;
	}

	public void setAmt(double amt) {
		this.amt = amt;
	}

	public Date getDate() {
		return date;
	}
	public void setDate(Date date) {
		this.date = date;
	}
	public String getComment() {
		return comment;
	}
	public void setComment(String comment) {
		this.comment = comment;
	}

	public Integer getDelflag() {
		return delflag;
	}

	public void setDelflag(Integer delflag) {
		this.delflag = delflag;
	}
	
	
}
